package com.tianfeng.huayi.service.impl;

import com.tianfeng.huayi.entity.ComplaintManagement;
import com.tianfeng.huayi.mapper.ComplaintManagementMapper;
import com.tianfeng.huayi.service.IComplaintManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComplaintManagementServiceImpl implements IComplaintManagementService {

    @Autowired
    private ComplaintManagementMapper complaintManagementMapper;

    @Override
    public ComplaintManagement selectComplaintManagementByComplaintId(Long complaintId) {
        return complaintManagementMapper.selectComplaintManagementByComplaintId(complaintId);
    }

    @Override
    public List<ComplaintManagement> selectComplaintManagementList(ComplaintManagement complaintManagement) {
        return complaintManagementMapper.selectComplaintManagementList(complaintManagement);
    }

    @Override
    public int insertComplaintManagement(ComplaintManagement complaintManagement) {
        return complaintManagementMapper.insertComplaintManagement(complaintManagement);
    }
}
